<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="_common/title.jsp" %>
<%
    if (null == session.getAttribute("user")) {
        response.sendRedirect("login.jsp");
    }
%>
<body>
    <%@include  file="_common/header.jsp" %>
    <%@include  file="_common/col-left.jsp" %>

    <div class="col-main col-xs-12 col-sm-6 col-md-9">
        <!-- InstanceBeginEditable name="main" -->
        <div class="title-main"><bean:write name="Mail" property="subject"></bean:write></div>
            <div class="content-main">
                <div class="rowManager">
                    <label class="lb">From</label>
                    <label class="vl"><bean:write name="Mail" property="sender"></bean:write></label>
                </div>                                                                                                            

                <div class="rowManager">
                    <label class="lb">Content</label>
                    <label class="vl"><bean:write name="Mail" property="content"></bean:write></label>
                </div>
                <div class="rowManager">
                    <label class="lb">Attachment</label>
                <%
                    if (null == session.getAttribute("pathAttachmentMail")) {
                %>
                <label class="vl"><a href="<bean:write name="Mail" property="attachment"></bean:write>">DownLoad</a></label>
                <%
                    }
                %>                                                        
            </div>
            <div class="rowManager">
                <label class="lb">Date of receipt</label>
                <label class="vl"><bean:write name="Mail" property="date"></bean:write></label>
                </div>                                                    
                <div class="rowManager">
                    <label class="lb"></label>
                    <label class="vl"><a href="loadEmailForReply.do?emailId=<bean:write name="Mail" property="emailId"></bean:write>" title="Reply Mail"><img src="<%=request.getContextPath()%>/_assets/images/icon_reply.jpg" alt="Reply"></a></label>
                </div>
            </div>
            <!-- InstanceEndEditable -->
        </div>
        <!-- ends col-main -->

    <%@include file="_common/footer.jsp" %>

</body>
</html>


